package com.hxit.servics.impl;

import com.hxit.mapper.ConversationKnowledgeBaseMapper;
import com.hxit.pojo.ConversationKnowledgeBase;
import com.hxit.servics.ConversationKnowledgeBaseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName ConversationKnowledgeBaseImpl
 * @Author 12694
 * @Date 2024/11/18 21:11
 * @Version 1.0
 **/
@Service
public class ConversationKnowledgeBaseImpl implements ConversationKnowledgeBaseService {
    @Autowired
    private ConversationKnowledgeBaseMapper conversationKnowledgeBaseMapper;
    /**
     * 增加对话知识点
     */
    @Override
    public void insertConversationKnowledgeBase(ConversationKnowledgeBase conversationKnowledgeBase) {
        conversationKnowledgeBaseMapper.insertConversationKnowledgeBase(conversationKnowledgeBase);
    }

    /**
     * 查询对话知识点
     * @return
     */
    @Override
    public List<ConversationKnowledgeBase> selectConversationKnowledgeBase() {
        return conversationKnowledgeBaseMapper.selectConversationKnowledgeBase();
    }

    /**
     * 删除对话知识点
     */
    @Override
    public void deleteConversationKnowledgeBase(ConversationKnowledgeBase conversationKnowledgeBase) {
        conversationKnowledgeBaseMapper.deleteConversationKnowledgeBase(conversationKnowledgeBase);
    }


}
